home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
050a.dms
/
050a.adf
/
EXAMPLE_PROGRAMS
/
example05_1.AMOS
/
example05_1.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
1KB
|
33 lines
'===================
'EXAMPLE PROGRAM 5_1
'===================
'A program to load an IFF picture using the Amos file selecter and display it.
Rem no need for DIR$ here as the user can change drives using the right mouse
Rem button, the following line brings up the selecter, f$ will hold the name
Rem of the file the user selects.
'-----------------------------------------------------------------------------
F$=Fsel$("*.*","","Load AN IFF PICTURE")
Rem If F$ holds nothing ie no filename the user must have clicked on QUIT
Rem from the selecter so we exit our program back to the editor.
'--------------------------------------------------------------------------
If F$="" Then Edit
Rem hide the mouse to keep things tidy
'-------------------------------------
Hide
Rem We tell Amos to LOAD an IFF picture into the default screen which is 0
Rem this means it will be automatically displayed.
'---------------------------------------------------------------------------
Load Iff F$,0
Rem wait for a key press, then back to the editor.
'-------------------------------------------------
Wait Key : Edit